<div class="cart list">
  <h2>Cart</h2>
  
  <table class="listing" sumary="Cart list">
    <tr class="header">
		<th>&nbsp;</th>
		<th>Name</th>
		<th>Available</th>
		<th>Time</th>
		<th>Buy</th>
		<th>Price</th>
	</tr>
	<% @cart_produces.each do |pro| %>
		<% produce = Produce.find(:first, :conditions => ["id=?", pro.produce_id]) %>
		<tr>
			<td><%= produce.name %></td>
			<td class="center"><%= produce.available %></td>
			<td class="center"><%= pro.time_new %></td>
			<td class="center"><%= produce.buy %></td>
			<td class="center"><%= produce.price %></td>
			<div class="form-buttons">
	  	  		<%= link_to 'Xóa khỏi giỏ hàng', {:action => 'delete_produce', :id => pro.id} %>
	  		</div>
	  		<%= link_to 'Mua sản phẩm', {:action => 'buy', :id => produce.id} %>
		</tr>
	<% end %>
  </table>
</div>